package com.alibaba.druid.pool;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @description:
 * @author: wangpei
 * @create: 2024-01-12 10:40
 **/
public class Test {
    protected static final AtomicLong aa = new AtomicLong();

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Thread1 t1 = new Thread1();
            t1.start();
        }

    }

    static class Thread1 extends Thread {
        @Override
        public void run() {
            System.out.println(aa.incrementAndGet());
        }
    }
}
